package edu.ustb.test.web;

public class HTMLFilter implements Filter {

	@Override
	public void doFilter(Request request, Response response,
			FilterChain filterChain) {
		String str	= request.getRequestStr().replace('<', '[')
				  .replace('>', ']');
		 request.setRequestStr(str);
		 filterChain.doFilter(request, response, filterChain);
		 String responseStr = response.getResponseStr() +" --- HTMLFilter.doFilter  --- ";
		 response.setResponseStr(responseStr);
	}
	
}
